<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page isELIgnored ="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<title>学生管理</title>

</head>
<body>

<h2>学生管理</h2>
<p><a href="${ctx}/student/studentAdd.jsp">添加学生</a></p>
<table border="1">
	<tr align="center" valign="middle">
    	<td width="166" >学号</td>
		<td width="151" >班级</td>
		<td width="191">姓名</td>
        <td width="215" >出生日期</td>
        <td width="111" >性别</td>
		<td width = "148">说明</td>
		<td width="220">操作</td>
	</tr>
	<c:forEach var="student" items="${students}">
		<tr>
        	<td width="166" >${student.student_id }</td>
			<td width="151" >${student.class_id }</td>
			<td width="191">${student.student_name }</td>
            <td width="215">${student.student_birthday }</td>
            <td width="111">${dict["sex"] [student["sex"]]}</td>
			<td width="148">${student.remarks }</td>
			<td width="220" align="center">
            
			<a href="${ctx}/student/student/update?student_id=${student.student_id}">修改</a>
			<a href="${ctx}/student/student/delete?student_id=${student.student_id}&student_name=${student.student_name}">删除</a>
			</td>
		</tr>
	</c:forEach>
</table>

</body>
</html>